package chapter2.section5;

/**
 * 程序2-9：一个格式化输出程序
 *
 * @author 作者姓名 
 */
public class TestPrintf {
    public static void main(String[] args) {
        int i = 12345;
        double d = 1234.567;
        String str = "Welcome";
        System.out.printf("%,6d %+10.2f %s", i, d, str);
    }
}
 